import request from '@/router/axios';

export const getServiceTree = (data) => {
    return request({
      url: '/api/rb-service/service/serviceinfo/service_info/tree',
      method: 'get',
      params: {
        current:'-1',
        size:'-1',
        ...data
      }
    })
  }

/* 服务商 导出 */
export const getExport = (params) => {
  return request({
    headers: {
      "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    },
    responseType: 'blob',
    url: '/api/rb-service/service/serviceinfo/service_info/export',
    method: 'get',
    params: {
      ...params,
    }
  })
}